package zdream.control.assets;

import org.junit.Test;

import java.util.Arrays;
import java.util.List;

/**
 * @author Zdream
 * @date 2023-12-30
 * @since 0.0.1
 */
public class AssetsCase {
	@Test
	public void testLoadAssets() {
		FoeStorage storage = new FoeStorage();
		storage.scan();

		final List<FoeDescription> descriptions = storage.allDescriptions();
		for (FoeDescription description : descriptions) {
			StringBuilder builder = new StringBuilder();
			builder.append(description);

			if (description.painter != null) {
				builder.append(" -> ").append(Arrays.toString(description.painter.textures));
			}

			System.out.println(builder);
		}
	}
}
